﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace WebSEClassLibrary
{
    /// <summary>
    /// 状态,用户在某一状态下的相关信息
    /// </summary>
    public class State
    {
        /// <summary>
        /// 状态的ID
        /// </summary>
        private StateEnum stateID;

        public StateEnum StateID
        {
            get { return stateID; }
            set { stateID = value; }
        }
        /// <summary>
        /// 当前状态下的所有person,key为personId
        /// </summary>
        private Dictionary<int,Person> personList;

        public Dictionary<int, Person> PersonList
        {
            get { return personList; }
            set { personList = value; }
        }

        #region 公用方法
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="currentState"></param>
        public State(StateEnum currentState)
        {
            //从XML中读取关于当前状态的信息,即根据currentState(StateID)获取到相应的Person
            //的personID,再调用personID的构造函数实例化Person,从而构造出personList
        }
        #endregion
    }
}
